/*******************************************************************************
 * Copyright (c) 2013 Zero Square LLC.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Zero Square LLC. Version 1
 * which accompanies this distribution
 ******************************************************************************/
package com.zsqr.dashboard.commons.domain;

import java.io.Serializable;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

/**
 * Base Entity to hold common Id property , to be extended
 * @author Saurabh
 *
 */

/**
 * This annotation will indicate to hibernate  that there is no table for
 * this class and it will be inherit by some other class 
 */
@MappedSuperclass
public class BaseEntity implements Serializable{
	
	private static final long serialVersionUID = 1905978293040513912L;
	/**
	 * ID field is auto generated sequence for oracle in any table
	 */
	@Id
	@GeneratedValue	
	private long id;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}
	

}
